Global Index
HTML5 JS API Index > Offline Tutorials & Specs

ApplicationCache

Extends EventTarget.

Properties
const unsigned short
CHECKING = 2
The ApplicationCache object's cache host is associated with an application cache whose application cache group's update status is checking.
const unsigned short
DOWNLOADING = 3
The ApplicationCache object's cache host is associated with an application cache whose application cache group's update status is downloading.
const unsigned short
IDLE = 1
The ApplicationCache object's cache host is associated with an application cache whose application cache group's update status is idle, and that application cache is the newest cache in its application cache group, and the application cache group is not marked as obsolete.
const unsigned short
OBSOLETE = 5
The ApplicationCache object's cache host is associated with an application cache whose application cache group is marked as obsolete.
const unsigned short
UNCACHED = 0
The ApplicationCache object's cache host is not associated with an application cache at this time.
const unsigned short
UPDATEREADY = 4
The ApplicationCache object's cache host is associated with an application cache whose application cache group's update status is idle, and whose application cache group is not marked as obsolete, but that application cache is not the newest cache in its group.
EventHandleroncached
EventHandleronchecking
EventHandlerondownloading
EventHandleronerror
EventHandleronnoupdate
EventHandleronobsolete
EventHandleronprogress
EventHandleronupdateready
unsigned short
status
The status attribute, on getting, must return the current state of the application cache that the ApplicationCache object's cache host is associated with, if any.
Operations
void
abort()
If the abort() method is invoked, the user agent must send a signal to the current application cache download process for the application cache group of the application cache with which the ApplicationCache object's cache host is associated, if any. If there is no such application cache, or it does not have a current application cache download process, then do nothing.
voidswapCache()
void
update()
If the update() method is invoked, the user agent must invoke the application cache download process, in the background, for the application cache group of the application cache with which the ApplicationCache object's cache host is associated, but without giving that cache host to the algorithm.
Referenced by
SharedWorkerGlobalScopeapplicationCache
WindowapplicationCache